package amd.core.data;

/**
 * Write a description of class TermFrequency here.
 * 
 * @author Latifah Dwi Nurachma
 * @version 090414
 */
public class TermFrequency
{
    // instance variables
    private String content;
    private int frequency;

    /**
     * Constructor for objects of class TermFrequency
     */
    public TermFrequency(String content, int frequency){
        // initialise instance variables
        this.content = content;
        this.frequency = frequency;
    }
    
    public TermFrequency(String content){
        this.content = content;
        frequency = 1;
    }

    public void set(String content, int frequency){
        this.setContent(content);
        this.setFrequency(frequency);
    }
    
    public void setContent(String content){
        this.content = content;
    }
    
    public void setFrequency(int frequency){
        this.frequency = frequency;
    }
    
    public String getContent(){
        return content;
    }
    
    public int getFrequency(){
        return frequency;
    }
}
